//
//  CommonTools.swift
//  WeiBo
//
//  Created by 李立达 on 15/12/6.
//  Copyright © 2015年 heima11. All rights reserved.
//

import UIKit

let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height

let autosize = SCREENH > 480 ? (SCREENH / 480) : 1.0
let HMSwitchRootVCNotifation = "HMSwitchRootVCNotifation"

 let HMHomeCell = "cell"
func RGB(red red:CGFloat , green : CGFloat , blue : CGFloat) ->UIColor {
    
    return UIColor(red: red / 255 , green: green / 255, blue: blue / 255, alpha: 1)
}

func randColor()-> UIColor {

return RGB(red: CGFloat(random() % 256), green: CGFloat(random() % 256), blue: CGFloat(random() % 256))
}
